<%@page import="net.vinote.smart.platform.comm.StringFunction"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="UTF-8"%>
<%@include file="comm/begin.jsp"%>
<script>
$(function(){
	$('input[name=userid]').focus();
	
	$('form').submit(function(){
		var sReturn=SubmitForm('registForm',"com.cms.user.perform.UserRegistPerform");
		if(sReturn=='SUCCESS'){
			$('#message span').hide().show().html("注册成功,正在登陆...");
			return true;
		}else{
			$('#message span').hide().show().html(sReturn);
			$('#message span').fadeOut(3000);
			return false;
		}
	});
});
</script>
<div id="outDiv">
	<div id="innerDiv">
		<div id="sysTitle">
			<div>
				<div class="edge left"></div>
				<div class="edge right"></div>
				<div class="center">
					<h3>用户注册</h3>
				</div>
			</div>
		</div>
		<div id="message">
			<span></span>&nbsp;
		</div>
		<form action="login" method="post" id='registForm'>
			<table cellpadding="0" cellspacing="4" border="0"
				style="margin: auto;">
				<tbody>
					<tr>
						<td><b>用户名:</b></td>
						<td><input type="text" name="userid" /></td>
					</tr>
					<tr>
						<td><b>&nbsp;&nbsp;&nbsp;&nbsp;姓名:</b></td>
						<td><input type="text" name="username" /></td>
					</tr>
					<tr>
						<td><b>&nbsp;&nbsp;&nbsp;&nbsp;密码:</b></td>
						<td><input type="password" name="password" /></td>
					</tr>
				</tbody>
			</table>
			<p style="text-align: center;">
				<button id="submit" type="submit">注册</button>
				<button id="reset" type="reset">重置</button>
			</p>
		</form>
		<br />
		<div style="text-align: center;">
			<a href="login.jsp">返回登录页面</a>
		</div>
	</div>
</div>
<%@include file="comm/end.jsp"%>